package com.dyw.blog.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * @author Devil
 * @create 2022-02-10 15:57
 */
@Data
@SuppressWarnings("all")
public class SysUser {

    //雪花算法
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    //以后用户多了之后 要进行分表操作 id就需要使用分布式id了
    private Long id;

    private String account;

    private Integer admin;

    private String avatar;

    private Long createDate;

    private Integer deleted;

    private String email;

    private Long lastLogin;

    private String mobilePhoneNumber;

    private String nickname;

    private String password;

    private String salt;

    private String status;
}

